package haltica.com.mx.ape.domain;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.TableGenerator;
import javax.validation.constraints.NotNull;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity(versionField = "", table = "encargado_telefono_sucursal")
public class EncargadoTelefonoSucursal {

    @Id
    @TableGenerator(name = "GEN_ENC_TEL_SUC", table = "sequence", pkColumnName = "SEQ_NAME", valueColumnName = "SEQ_COUNT", pkColumnValue = "SEQ_ENC_TEL_SUC", allocationSize = 1)
	@GeneratedValue(strategy=GenerationType.TABLE, generator="GEN_ENC_TEL_SUC")
    @Column(name = "ID_ENCARGADO", columnDefinition = "INT UNSIGNED")
    private Integer idEncargado;

    @ManyToOne
    @JoinColumn(name = "ID_SUCURSAL", referencedColumnName = "ID_SUCURSAL", nullable = false)
    private Sucursal idSucursal;

    @Column(name = "NOMBRE", columnDefinition = "VARCHAR", length = 30)
    @NotNull
    private String nombre;

    @Column(name = "AP_PATERNO", columnDefinition = "VARCHAR", length = 30)
    private String apPaterno;

    @Column(name = "AP_MATERNO", columnDefinition = "VARCHAR", length = 30)
    private String apMaterno;

    @Column(name = "EMAIL", columnDefinition = "VARCHAR", length = 30)
    private String email;

    @Column(name = "NUM_PERSONAL_TEL", columnDefinition = "VARCHAR", length = 14)
    @NotNull
    private String numPersonalTel;

    @Column(name = "NUM_IMEI_TEL_ASIGNADO", columnDefinition = "VARCHAR", length = 15)
    @NotNull
    private String numImeiTelAsignado;

    @Column(name = "NUM_SIM_TEL_ASIGNADO", columnDefinition = "VARCHAR", length = 14)
    @NotNull
    private String numSimTelAsignado;

    @Column(name = "ENABLED", columnDefinition = "BIT")
    private Boolean enabled;
}
